#def greet_user():
#     print('Hello!')
# greet_user()
#
# def greet_user(name):
#     print('Hello!',name)
#
# greet_user('heshuai')

# i=1
# while i<10:
#     print(i)
#     i+=1
#
# try:
#     a=input('请输入第一条边：')
#     b=input('请输入第二条边：')
#     c=input('请输入第三条边：')
#     if a+b>c and a+c>b and b+c>a:
#         print('三条边长为：{a},{b},{c}')
#     else:
#         raise Exception(f'{a}, {b}, {c},不能构成三角形')
# except Exception as e:
#     print(e)


def Mesagg_information(group):

    for i in group:
        print(i)

# lst=[]
# while True:
#     name = input('请输入你的名字：')
#     age = input('请输入你的年龄：')
#     source = input('请输入你的成绩：')
#     num = input('请你打算是否输入你选择yes/no')
#     flag=True
#     if num != 'no':
#         lst.append([name,age,source])
#     else:
#         break
# for i in lst:
#      print(i)
#

def get_number(num):
    s=0
    for i in range(1,num+1):
        s+=i
    print(f'1到{num}的总和：{s}')



get_number(100)

